﻿{#template MAIN}
<table id="gridServiceProvider" cellpadding="5" cellspacing="0" class="grid">
    <thead>
        <th>
            Seq
        </th>
        <th style="display: none">
            ID
        </th>
        <th style="display: none">
            Provider ID
        </th>
        <th>
            Provider #
        </th>
        <th>
            Name
        </th>
        <th>
            Method
        </th>
        <th style="display: none">
            ChoiceOption
        </th>
        <th style="display: none">
            Num in package
        </th>
        <th style="display: none">
            Unit
        </th>
        <th style="display: none">
            Package Price
        </th>
        <th style="display: none">
            Unit Price
        </th>
        <th style="display: none">
            Currency
        </th>
        <th style="display: none">
            Night Flag
        </th>
        <th style="display: none">
            Other UOM
        </th>
        <th>
            <a href="javascript:void(0)" class="btnNew">Add</a>
        </th>
    </thead>
    <tbody>
        {#foreach $T.List as serviceProvider}
        <tr class="{#cycle values=['','evenRow']}">
            <td align="center">
                {$T.serviceProvider$index + 1}
            </td>
            {#include ROW root=$T.serviceProvider}
            <td>
                <a serviceproviderid='{$T.serviceProvider.ServiceProviderID}' class="btnEdit new"
                    href="javascript:void(0)">Edit</a> {#if $T.IsAdmin } |&nbsp;<a serviceproviderid="{$T.serviceProvider.ServiceProviderID}"
                        class="btnDelete new" href="javascript:void(0)">Delete</a> {#/if}
            </td>
        </tr>
        {#/for}
    </tbody>
    <tfoot>
        <th colspan="10">
        </th>
    </tfoot>
</table>
{#/template MAIN} {#template ROW}
<td style="display: none">
    {$T.ServiceProviderID}
</td>
<td style="display: none">
    {$T.Provider.ProviderID}
</td>
<td>
    {$T.Provider.ProviderNumber}
</td>
<td>
    {$T.Provider.ProviderName}
</td>
<td>
    {$T.Method}
</td>
<td style="display: none">
    {$T.ChoiceOption}
</td>
<td style="display: none">
    {$T.NumInPackage}
</td>
<td style="display: none">
    {$T.Unit}
</td>
<td style="display: none">
    {$T.PackagePrice}
</td>
<td style="display: none">
    {$T.UnitPrice}
</td>
<td style="display: none">
    {$T.Currency}
</td>
<td style="display: none">
    {$T.NightFlag}
</td>
<td style="display: none">
    {$T.OtherUom}
</td>
{#/template ROW}